package com.sx.service.user;

import com.sx.basic.IBasicService;
import com.sx.entity.user.InviteCodeEntity;

/**
 * @author AdinZ
 * @date 2020/11/18 14:19
 */
public interface IInviteCodeService extends IBasicService<InviteCodeEntity,Long> {
    Long getUid(String code);
    InviteCodeEntity get(String code);

    /**
     * 生成邀请码
     * @param uid
     * @return
     */
    InviteCodeEntity inviteGen(long uid);

}
